home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / C++ A'Link Files / Jan 91 / CPlus.Dev$ 1⁄11⁄91 / 0248-Dump⁄Load Problem-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.8 KB  |  51 lines  |  [TEXT/GEOL]

  1.  
  2. Item    8778001                         7-Jan-91        22:16PST
  3.  
  4. From:   D3554                           Discovery SW Int'l, Rick Ross,PRT
  5.  
  6. To:     CPLUS.DEV$                      C++ Interest List--Developers
  7.         CPLUS.APPLE$                    C++ Interest List--Apple Employees
  8.  
  9. ------------------------------------------------------------------------------
  10.  
  11. Sub:    Dump/Load Problem
  12.  
  13. Dear C++ Cognoscenti,
  14.  
  15.     I have spent several hours now trying to figure out why the C++ compiler
  16. is giving me different results from the same file depending on whether or not I
  17. use a dump file for precompiled headers. I am using the compiler which just
  18. came on the ETO #2 disk, it should be current.  The CFront version is 1.0.
  19.  
  20.     The file is "shapes.cp" from the CPlusExamples folder of the MPW
  21. distribution disk, and the dump file is one created from the file "shapes.h"
  22. from the same folder. If I don't instruct the compiler to load the dump file,
  23. then everything works fine.  However, it aborts the compile in the CFront stage
  24. with an error message about "... cannot access __nw ..." if the dump file is
  25. used.
  26.  
  27.     I am now really frustrated and have a sense of impending doom about never
  28. being able to use precomplied headers.  Can anyone offer suggestions or point
  29. out my error.
  30.  
  31. -------
  32.  
  33. Command line to compile "shapes.cp" without dump file (works fine):
  34.     CPlus Shapes.cp -o Shapes.cp.o -mf -sym off
  35.  
  36. Command line to create dump file (works fine):
  37.     CPlus Shapes.h -o Shapes.h.o -mf -sym off -dumpc shapes.h.dump
  38.  
  39. Command line to compile "shapes.cp" with dump file loaded:
  40.     CPlus Shapes.cp -o Shapes.cp.o -mf -sym off -load shapes.h.dump
  41. Terminates compilation with error message
  42.     File "Shapes.cp"; line 104 # error:  TArc::TArc() cannot access __nw :
  43.         HandleObject  is a private base class
  44.  
  45. -------
  46.  
  47. Thanks,
  48. Rick Ross
  49. AppleLink: D3554
  50.  
  51.